<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script type="text/javascript">
    $(function () {
        $("#btnCancel").on('click', function () {
            hideShowTableTd('countDrugTable', '0,1,2,3,4,5', '1');
            $("#RightDiv").attr("style", "display: none");
            $("#LeftDiv").attr("class", "main-content col-lg-12");
            $("#LeftDiv").show('normal');
        })
    })

</script>
<div class="app">
    <section class="layout">
        <section class="main-content">
            <div class="content-wrap">
                <div class="wrapper">
                    <ul class="nav nav-tabs">
                        <li>
                            <a href="#">医嘱汇总列表</a>
                        </li>
                    </ul>
                    <section class="panel panel-default">
                        <div class="panel-body">
                            <div class="table-responsive no-border">
                                <div class="datatable-top">
                                    <div class="pull-left">
                                        <input id="btnCancel" class="btn btn-primary" type="buttton" value="关闭"/>
                                    </div>
                                </div>
                                <table id="ordersDispTable" class="table table-bordered mg-t datatable">
                                    <thead>
                                    <tr>
                                        <th>摆药数量</th>
                                        <th>持续</th>
                                        <th>上次摆药截至</th>
                                        <%--<th>本次摆药截至</th>--%>
                                        <th>姓名</th>
                                        <th>床号</th>
                                        <th>医嘱内容</th>
                                        <th>药品规格</th>
                                        <th>药品单位</th>
                                        <th>药品厂商</th>
                                        <th>开单医生</th>
                                        <th>开单科室</th>
                                        <th>开始时间</th>
                                        <th>预出院时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <c:forEach items="${ordersList}" var="orders">
                                        <tr style="text-align: center;">
                                            <td> ${orders.amount}</td>
                                            <td> ${orders.repeatIncaditorTran}</td>
                                            <td><fmt:formatDate value="${orders.lastDispDate}"
                                                                pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                            <td> ${orders.name}</td>
                                            <td> ${orders.bedNo}</td>
                                            <td> ${orders.orderText}</td>
                                            <td> ${orders.drugSpec}</td>
                                            <td> ${fns:getDictLabel(orders.drugUnits, 'SPEC_UNIT', '')}</td>
                                            <td> ${orders.firmName}</td>
                                            <td> ${fns:getUserName(orders.newDoct)}</td>
                                            <td> ${fns:getDeptName(orders.newDept,'')}</td>
                                            <td><fmt:formatDate value="${orders.startDate}"
                                                                pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                            <td><fmt:formatDate value="${orders.preDischargeDate}"
                                                                pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                        </tr>
                                    </c:forEach>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </section>
    </section>
</div>



